.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.custom-modal-content {
  position: relative;
  width: 90%;
  max-width: 1280px;
  animation: modalFadeIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 1);
}

.custom-modal-title {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text-primary);
}

/* 亮色主题 */
.custom-modal-content.light {
  background: #fff;
  color: #333;
}

/* 暗色主题 */
.custom-modal-content.dark{
  background: #1a1a1a;
  color: #fff;
}

.custom-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 确保在触摸设备上的样式一致性 */
@media (hover: none) and (pointer: coarse) {
  .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    line-height: 32px;
  }
}

.custom-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
} 